cmake_minimum_required(VERSION 3.16)

project(irgenerator)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "-g -Wall -Wno-attributes -Wno-unused-variable")

include_directories(
    ${PROJECT_SOURCE_DIR}/include
    ${PROJECT_SOURCE_DIR}/../compiler_ir/include
)

file(GLOB_RECURSE SRC_FILES "src/*.cpp")

add_executable(ir_generator ${SRC_FILES})

target_link_libraries(ir_generator project1_lib)
